package com.chi.java8;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * @author chi  2017-08-03 18:59
 **/
public class LambdaTest {
    public static void main(String[] args){
        ArrayList<Object> objects = new ArrayList<>();
        objects.add(1);
        objects.add(2);
        objects.add(4);
        objects.add(6);
        objects.add(9);

        objects.forEach(e -> System.out.println(e));

        objects.forEach(e -> {
            System.out.println("=======");
            System.out.println(e);
        });
    }
}
